//
//  UserModel.swift
//  weibobbaj
//
//  Created by Tiffany宝 on 16/4/21.
//  Copyright © 2016年 Tiffany. All rights reserved.
//

import UIKit

class UserModel: NSObject {
    
    //vip等级
    var mbrank: Int = 0
    
    //名字
    var name: String?
    
    //头像地址
    var profile_image_url: String?
    
    
    init(dic:[String : AnyObject]) {
        
        super.init()
        
        setValuesForKeysWithDictionary(dic)
    }
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {}
    
    override var description: String{
        
        let keys = ["mbrank","name","profile_image_url"]
        
        //模型转字典
        return dictionaryWithValuesForKeys(keys).description
    }
}
